package org.millioncall.yueyoga.admin.model;

import java.util.Date;

import org.millioncall.openplatform.util.DateTimeUtils;

/**
 * 消费记录
 * 
 * @author zangjinyu
 * 
 */
public class ConsumeHistoryModel {
	private Integer id;
	private String memberId;
	private String memberCardNo;
	private String memberName;
	private Integer classId;
	private String className;
	private Integer scheduleId;
	private String scheduleStartTime;
	private String scheduleEndTime;
	private Integer scheduleTeacherId;
	private String scheduleTeacherName;
	private Integer scheduleAssistantId;
	private String scheduleAssistantName;
	private Integer schedulePlaceId;
	private String schedulePlaceName;
	private Date consumeTime;
	private Integer week;
	private Integer productId;
	private String productName;
	private String organizationId;

	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getWeek() {
		String rtn = null;
		switch (week) {
		case 1:
			rtn = "周一";
			break;
		case 2:
			rtn = "周二";
			break;
		case 3:
			rtn = "周三";
			break;
		case 4:
			rtn = "周四";
			break;
		case 5:
			rtn = "周五";
			break;
		case 6:
			rtn = "周六";
			break;
		case 7:
			rtn = "周日";
			break;
		}
		return rtn;
	}

	public void setWeek(Integer week) {
		this.week = week;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Integer getScheduleId() {
		return scheduleId;
	}

	public void setScheduleId(Integer scheduleId) {
		this.scheduleId = scheduleId;
	}

	public String getScheduleStartTime() {
		return scheduleStartTime;
	}

	public void setScheduleStartTime(String scheduleStartTime) {
		this.scheduleStartTime = scheduleStartTime;
	}

	public String getScheduleEndTime() {
		return scheduleEndTime;
	}

	public void setScheduleEndTime(String scheduleEndTime) {
		this.scheduleEndTime = scheduleEndTime;
	}

	public Integer getScheduleTeacherId() {
		return scheduleTeacherId;
	}

	public void setScheduleTeacherId(Integer scheduleTeacherId) {
		this.scheduleTeacherId = scheduleTeacherId;
	}

	public String getScheduleTeacherName() {
		return scheduleTeacherName;
	}

	public void setScheduleTeacherName(String scheduleTeacherName) {
		this.scheduleTeacherName = scheduleTeacherName;
	}

	public Integer getScheduleAssistantId() {
		return scheduleAssistantId;
	}

	public void setScheduleAssistantId(Integer scheduleAssistantId) {
		this.scheduleAssistantId = scheduleAssistantId;
	}

	public String getScheduleAssistantName() {
		return scheduleAssistantName;
	}

	public void setScheduleAssistantName(String scheduleAssistantName) {
		this.scheduleAssistantName = scheduleAssistantName;
	}

	public Integer getSchedulePlaceId() {
		return schedulePlaceId;
	}

	public void setSchedulePlaceId(Integer schedulePlaceId) {
		this.schedulePlaceId = schedulePlaceId;
	}

	public String getSchedulePlaceName() {
		return schedulePlaceName;
	}

	public void setSchedulePlaceName(String schedulePlaceName) {
		this.schedulePlaceName = schedulePlaceName;
	}

	public String getConsumeTime() {
		return DateTimeUtils.getInstance().format(this.consumeTime,
				"yyyy-MM-dd HH:mm:ss");
	}

	public void setConsumeTime(Date consumeTime) {
		this.consumeTime = consumeTime;
	}

	public String getMemberCardNo() {
		return memberCardNo;
	}

	public void setMemberCardNo(String memberCardNo) {
		this.memberCardNo = memberCardNo;
	}

}
